import { Box, Column, Label, Row, Text } from '@umami/react-zen'; import { Empty } from '@/components/common/Empty'; import { LoadingPanel } from '@/components/common/LoadingPanel'; import { useSessionDataQuery } from '@/components/hooks'; import { DATA_TYPES } from '@/lib/constants'; export function SessionData({ websiteId, sessionId }: { websiteId: string; sessionId: string }) { const { data, isLoading, error } = useSessionDataQuery(websiteId, sessionId); return ( {!data?.length && } {data?.map(({ dataKey, dataType, stringValue }) => { return ( {stringValue} {DATA_TYPES[dataType]} ); })} ); }